<table cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<td rowspan="6" style="padding:12px 20px;width:120px;border:1px solid #d9d9d9;text-align:center">
			<?php if (!empty($user_info['thumb_avatar'])) {?>
				<img src="/img/avatar/<?php echo $user_info['thumb_avatar'];?>"></img>
			<?php } else {?>
				<img src="/img/user.png" />
			<?php }?>
			<div>ID:<?php echo $user_info['id']+100000;?></div>
			<?php if (!empty($is_author)) {?><div><a href="/user/edit_avatar">+编辑头像</a></div><?php }?>	
		</td>
		<td class="border_bottom_dotted" style="border-top:1px solid #d9d9d9;" width="650" height="30">
			<a class="user_name"><?php echo $user_info['nickname'];?></a>&emsp;&ensp;
			<span class="item"><?php echo ($user_info['gender']==2 ? '女' : '男')?></span>
			<span class="item">1980后</span>
			<?php if ($is_author) {?>
			<span class="margin_left15 item">未读信息(<a href="/user/messages"> <span class="orange"><?php echo $unread_message_count;?></span></a>)</span>
			<span class="item"><a href="/user/show?user_id=<?php echo $user_info['id'];?>&preview=1" class="right">&gt;空间预览</a></span>
			<?php }?>
		</td>
		<td rowspan="6" width="15"></td>
		<td rowspan="6" width="175" class="emergency_card" align="center">
			<?php if ($is_author) {?>
			<div style="margin-bottom:20px;">行动卡数：<span class="bold orange" style="font-size:20px"><?php echo $card_count;?></span></div>
			<?php }?>
			<div><img src="/img/emergency_card.png" /></div>
			<div style="margin-top:20px">
				<a href="/buy" class="bold margin_right15">&gt;现在购买</a>
				<a href="/buy/transfer" class="bold">&gt;转让他人</a>
			</div>
		</td>
	</tr>
	<tr>
		<td class="border_bottom_dotted" height="30">
			<span class="title">行动记录：</span>
			<span class="item">好评：<?php for($i = 0; $i < floor($score) && $i < 5; $i++) {?>
							<img src="/img/star-on.png" />
						<?php }?></span>
			<span class="item">发布事项：<span class="underline orange"><?php echo empty($published_story_count) ? '0' : $published_story_count;?></span></span>
			<span class="item">报名事项：<span class="underline orange"><?php echo empty($applied_story_count) ? '0' : $applied_story_count;?></span></span>
			<span class="item">小组：<span class="underline orange"><?php echo empty($joined_group_count) ? '0' : $joined_group_count;?></span></span>
		</td>
	</tr>
	<tr>
		<td class="border_bottom_dotted" height="30">
			<span class="title left"><?php echo $ta;?>的行家：</span>
			<?php if(!empty($user_experts)) {?>
				<div class="one_line left" style="width:450px">
				<?php foreach($user_experts as $user_expert) {?>
				<span class="item blue"><a href="/user/experts?expert_id=<?php echo $user_expert['id']?>&user_id=<?php echo $user_info['id'];?>"><?php echo $user_expert['title'];?></a></span>
				<?php }?>
				</div>
			<?php }?>
			<?php if($is_author && $expert_count < 4) {?><a href="/expert/create" class="right">+添加行家</a><?php }?>
		</td>
	</tr>
	<tr>
		<td class="border_bottom_dotted" height="30">
			<span class="title">我的验证：</span>
			<?php if(!empty($vertifications)) {?>
				<?php foreach($vertifications as $vertification) {?>
				<span class="item"><?php echo $vertification['obj_name'];?></span>
				<?php }?>
			<?php }?>
			<?php if($is_author) {?><a href="/user/vertification" class="right">+添加验证</a> <?php }?>
		</td>
	</tr>
	<tr>
		<td class="border_bottom_dotted" height="30">
			<span class="title">所&nbsp;&nbsp;在&nbsp;&nbsp;地：</span>
			<span class="item"><?php echo $address;?></span>
			<!--<?php if($is_author) {?><a href="javascript:void(0)" class="right">&gt;重新设定</a><?php }?>
		--></td>
	</tr>
	<tr>
		<td class="border_bottom_solid" height="30">
			<span class="title">订制事项：</span>
			<?php if(!empty($subscribes)) {?>
			<?php foreach($subscribes as $subscribe) {?>
				<span class="item blue bold"><a href="/search?province=<?php echo $subscribe['province']?>&city=<?php echo $subscribe['city']?>&area=<?php echo $subscribe['area']?>&category_id=<?php echo $subscribe['category_id']?>&search_type=story"><?php echo $subscribe['title'];?></a>
				<span class="grey normal">（<?php echo $subscribe['story_count'];?>）</span></span>
			<?php }?>
			<?php }?>
			<?php if($is_author) {?>
			<div class="right" style="position:relative;z-index:100;">
				<a href="javascript:void(0)" onclick="javascript:$('#bookmark_place_box').toggle();">+添加订制</a>
				<form id="bookmark_place_box" >
					<div class="margin_bottom15">
						<?php $this->load->view('common/province_selector'); ?>
					</div>
					<div>
						<select class="section_selector">
							<option value="">行业类别</option>
							<?php foreach($first_level_categories as $category) {?>
							<option value="<?php echo $category['id']?>"><?php echo $category['name']?></option>	
							<?php }?>
						</select>
						<select name="category_id" id="category_id">
							<option value="">事项分类</option>
						</select> 
						<input type="button" class="input_button" value="确认订制" onclick="subscribe();"/>
					</div>
				</form>
				<script type="text/javascript">
				function subscribe() {
					$("#bookmark_place_box").hide();
					$.post("/user/subscribe", $("#bookmark_place_box").serialize(), function(data) {
						if(data == 1) {
							
						} else {
							alert("系统繁忙，请稍候再试");
						}
						location.reload();
					});
				}
				</script>
			</div>
			<?php }?>
		</td>
	</tr>
</table>